package bar.dark.lee.alarm.query;

import android.os.Parcel;
import android.os.Parcelable;

public class AlarmData implements Parcelable
{
	private String id; // 아이디
	private String time; // 알람이 울리는 시간 HHMM 타입
	private String effect; // 효과번호
	private String sound; // sound 파일 주소
	private String date; // 알람이 울리는 요일 0:안울림 1:일요일 7:토요일
	private String snoozeminute; // 다시 울림 간격 분
	private String memo; // 메모내용
	private String soundName; // sound 파일 이름
	private String effectName; // 효과 이름
	private String dateName; // 설정 요일 이름
	private String snoozeminuteName; // 반복 이름
	private String timeName; // 알람이 울리는 시간  HH : MM
	
	public AlarmData(){};
	
	public AlarmData(Parcel source)
	{
		this.id = source.readString();
		this.time = source.readString();
		this.effect = source.readString();
		this.sound = source.readString();
		this.date = source.readString();
		this.snoozeminute = source.readString();
		this.memo = source.readString();
		this.soundName = source.readString();
		this.effectName = source.readString();
		this.dateName = source.readString();
		this.snoozeminuteName = source.readString();
		this.timeName = source.readString();
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getId());
		dest.writeString(this.getTime());
		dest.writeString(this.getEffect());
		dest.writeString(this.getSound());
		dest.writeString(this.getDate());
		dest.writeString(this.getSnoozeminute());
		dest.writeString(this.getMemo());
		dest.writeString(this.getSoundName());
		dest.writeString(this.getEffectName());
		dest.writeString(this.getDateName());
		dest.writeString(this.getSnoozeminuteName());
		dest.writeString(this.getTimeName());
	}

	public static Parcelable.Creator<AlarmData> CREATOR = new Creator<AlarmData>()
	{
		@Override
		public AlarmData[] newArray(int size)
		{
			return new AlarmData[size];
		}
		
		@Override
		public AlarmData createFromParcel(Parcel source)
		{
			return new AlarmData(source);
		}
	};
	
	@Override
	public int describeContents()
	{
		return 0;
	}
	
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getTime()
	{
		return time;
	}
	public void setTime(String time)
	{
		this.time = time;
	}
	public String getEffect()
	{
		return effect;
	}
	public void setEffect(String effect)
	{
		this.effect = effect;
	}
	public String getSound()
	{
		return sound;
	}
	public void setSound(String sound)
	{
		this.sound = sound;
	}
	public String getDate()
	{
		return date;
	}
	public void setDate(String date)
	{
		this.date = date;
	}
	public String getSnoozeminute()
	{
		return snoozeminute;
	}
	public void setSnoozeminute(String snoozeminute)
	{
		this.snoozeminute = snoozeminute;
	}
	public String getMemo()
	{
		return memo;
	}
	public void setMemo(String memo)
	{
		this.memo = memo;
	}

	public String getSoundName()
	{
		return soundName;
	}

	public void setSoundName(String soundName)
	{
		this.soundName = soundName;
	}

	public String getEffectName()
	{
		return effectName;
	}

	public void setEffectName(String effectName)
	{
		this.effectName = effectName;
	}

	public String getDateName()
	{
		return dateName;
	}

	public void setDateName(String dateName)
	{
		this.dateName = dateName;
	}

	public String getSnoozeminuteName()
	{
		return snoozeminuteName;
	}

	public void setSnoozeminuteName(String snoozeminuteName)
	{
		this.snoozeminuteName = snoozeminuteName;
	}

	public String getTimeName()
	{
		return timeName;
	}

	public void setTimeName(String timeName)
	{
		this.timeName = timeName;
	}
}
